]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: use get_allocation_box() in _ensureIconVisible
authorDan Winship <danw@gnome.org>
Fri, 18 Mar 2011 18:33:45 +0000 (14:33 -0400)
committerDan Winship <danw@gnome.org>
Mon, 21 Mar 2011 18:26:07 +0000 (14:26 -0400)
commitd0dd37fe947fd43151f2f06a7794688689ed706c
tree4644808dfb6aba0a5cadae30d1d94f829c3dadb9
parentb2df3fcd1da6d7ad4912f6b6b77bce19cd8c30ce
appDisplay: use get_allocation_box() in _ensureIconVisible

When right-clicking on an AppWellIcon, the icon will become focused,
which (presumably via style-changed) invalidates its current
allocation, causing "icon.y" to return 0 until it has been
reallocated, messing up our idea of where in the AppDisplay the icon
is. Work around this by calling get_allocation_box() instead.

https://bugzilla.gnome.org/show_bug.cgi?id=645162
js/ui/appDisplay.js